<template>
  <div>
    <van-field readonly label="姓名" type="text" :value="form.ChnName"></van-field>
    <van-field readonly label="接害类型" type="text" :value="form.HurtType"></van-field>
    <van-field readonly label="体检时间" type="text" :value="form.CheckDate|formatDate"></van-field>
    <van-field readonly label="下次体检时间" type="text" :value="form.NextCheckDate|formatDate"></van-field>
    <van-field readonly label="体检结果" type="text" :value="form.CheckResult"></van-field>
  
     <FileUpload readonly autoSize @CallBack="_fileUploadCb" :attachs="form.Attachs" :allowEdit="false" :labelName="'相关附件'" />  
 
   
  </div>
</template>
<script>
import srcValue from "@/utils/srcValue.js";
import { nsCheckUserInfoDetail } from "@/api/ns";
export default {
  data() {
    return {
      id: this.$route.query.id,
      autoSize: { minRows: 1 },
      form: { Attachs: "" },
      baseUrl: process.env.VUE_APP_BASE_API
    };
  },
  created() {
    this.getDetail();
  },
  methods: {
    getDetail() {
      var me = this;
      let params = { id: this.id };
      nsCheckUserInfoDetail(params).then(res => {
        me.form = res.data;
        me.form.TypeList = me.form.Type == null ? [] : me.form.Type.split(",");
      });
    }, _fileUploadCb(attachs) {
      this.form.Attachs = attachs;
    },
    goFile(attachCode) {
    }
  }
};
</script>
<style scoped="less">

   .input_text_block  .van-field__control {
    background: #fff;
  }
.van-cell__title .van-field__label {width: 80px;}
</style>